import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
//配置请求的根目录
axios.defaults.baseURL = "/equipment"

Vue.prototype.$axios = axios


// 完整引入elementUI
import ElementUI from 'element-ui';
// 引入 element css/
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)


//按需引入elementUI
// import { Button, TimeSelect, Row } from 'element-ui';
// Vue.use(Row)
// Vue.component(Button.name, Button)
// Vue.use(TimeSelect)



Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
  beforeCreate() {
    Vue.prototype.$bus = this //安装全局事件总线
  },




}).$mount('#app')
